package org.imaginedays.java.design.patter.newsimplefactory;

public class CashRebate extends CashSuper {
	
	private double moneyRebate = 1d;
	


	public CashRebate(String moneyRebate) {
		super();
		this.moneyRebate = Double.parseDouble(moneyRebate);
	}

	@Override
	public double acceptCash(double money) {
		return money*moneyRebate;
	}

}
